To have Vim take care of prebuilding non-existent directories, you could hook a handler into the BufNewFile event, which is queued whenever you start to edit a file that does not yet exist. 要让Vim负责提前创建不存在的目录,您可以将一个处理器连接到BufNewFile事件,当您开始编辑一个不存在的文档时,它就会进行排列。